The Case for Non-Cohesive Packages
نویسندگان
چکیده
Cohesion and coupling principles have been first defined for procedural languages with a black box model of control flow in mind [Stevens et al. 1974; Yourdon and Constantine 1979]. These principles state that a module should have high (internal) cohesion and low (external) coupling so that it implements a well defined functionality and can be easily reused [Briand et al. 1998; Briand et al. 1999]. We argue that when porting the principles to the object-oriented paradigm, some intrinsic properties of the object-oriented paradigm got ignored. We claim that packages with low cohesion are not necessarily packages with low quality. This is due in particular to the presence of inheritance and late-binding, which are the cornerstones of incremental definitions of classes. Classes in one package can extend the behavior of classes defined in other packages and just define a small increment in functionality. Late-binding is also the key mechanism to build white-box frameworks [Pree 1995] using the Hollywood Principle (“don’t call us, we’ll call you”). The application of this principle leads to the situation where an extending package may exhibit low cohesion and still be a well designed package. In this paper, an experiment is performed on various software systems to understand package cohesion and coupling when they are developed as extensions of frameworks. The analysis is performed by studying package dependencies of extender applications with their frameworks. The contributions of the paper are the following: (1) identification of a common cohesion/coupling misunderstanding for object-oriented programming; (2) a validation of the hypothesis on several real cases; and (3) a simple model to represent cohesion/coupling in a context of frameworks where no
منابع مشابه
Prediction of Cohesive Sediment Erosion Rate and Analyzing the Effective Parameters Using Artificial Neural Network
Transferring mechanic of cohesive sediments are different from non-cohesive sediments. For determining the erosion rate of non-cohesive sediments, physical parameters such as average diameter and density are used, such as average diameter and density. Due to the nature of the cohesive sediments, their erosion rates are determined interrelated with the shear stress of the bed with fixed coeffici...
متن کاملA multi-lined behavior simulation approach for liquefaction of earth-dam
A few of the presented soil behavior models are capable of predicting the triggering and post liquefaction and also shear band mechanism through the soil media. The assessment of earth-dam body behavior as a soil structure made of cohesive soil in core and non-cohesive soil as the core supports, including water interaction at upstream through earthquake upon a multi-line constitutive equations ...
متن کاملAnalysis of Technology Attributes Influencing Non - Adoption of Apiary Production Technologies: The Case IFAD Bee Farmers in Cross River State, Nigeria
Beekeeping as a technology package disseminated to target farmers in Nigeria seems to suffer setbacks ranging from negative perception of farmers about the technology to technical contents of the package. This study therefore analyzes the technology attributes that influence non adoption of apiary technology packages in Cross River State, Nigeria. Purposive and multist...
متن کاملEffect the kind of sediments on Scour Cone in Pressure Flushing
The accumulation of sediments in reservoirs of dams has always been one of the problems of reservoir dams. Accordingly, one of the approaches to address this problem can be referred to as the method of pressure flushing. In this method, during the course of flushing, generally the bottom drainage outlets of the dam are opened for a certain period of time and the reservoir water level is kept al...
متن کامل“Based on the data in …” Cohesive markers in Results and Discussion Section of Research Articles
Cohesive frames are linguistic elements that precede the grammatical subject in the main clause. This study investigated the frequencies and communicative purposes of cohesive frame types in results and discussion section of research articles from 4 disciplines. To run this study, 40 results and discussion sections of research articles were selected from 4 disciplines, namely Applied Linguistic...
متن کاملEffective Strategies for Optimal Implementation of Evolution and Innovation Packages in Medical Education
ABSTRACT BACKGROUND AND OBJECTIVE: Evolution and innovation packages in medical science education are the main program of medical education and it is necessary to pay attention to the provision of infrastructure of their implementation. This study was conducted to identify effective strategies for optimal implementation of evolution and innovation packages in medical education. METHODS: The met...
متن کامل